import * as api from './util';

//获取用户信息
export function updateSwitchInfo() {
  return api.get('/applets/provider/customUser/info');
}

// 客户列表
export function customUserList(postBody) {
  return api.get('/applets/provider/customUser/list', postBody);
}

// 订单列表
export function orderList(postBody) {
  return api.get('/applets/provider/order/findOrderListByUserId', postBody);
}

// 销售订单分享列表
export function chooseOrderListById(postBody) {
  return api.post('/share/provider/chooseOrderList', postBody);
}

//客户联系人列表(短信推送用)
export function msgSendContactsList(postbody) {
  return api.post('/applets/provider/customAccount/allList', postbody);
};

//分享
export function preShare(postbody) {
  return api.post('/share/preShare', postbody);
};

//复制短链接
export function getShortLink(postbody) {
  return api.post('/applets/provider/shortMessage/getShortLink', postbody);
}

//短信分享
export function messageSend(postbody) {
  return api.post('/applets/provider/shortMessage/insert', postbody);
};